<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>没有原型的对象</title>
  </head>
  <body></body>
  <script>
    let arr = ["hdcms"];
    console.log(arr);

    let xj = { name: "向边" };
    console.log(xj);
    console.log(xj.hasOwnProperty("name"));

    //完全数据字典对象，null表示原型为空
    let hd = Object.create(null, {
      name: {
        value: "后盾人"
      }
    });
    console.log(hd);
    //没有原型方法会报错
    console.log(hd.hasOwnProperty("name"));
  </script>
</html>
